function hangqing() {	
	myajax({
		url: k_server.hang,
		type: 'get',
		data: {
			type: 2
		}, 
		sfun: function(data) {
			if(data.code == 200) {
				jo.reTpl($('#temp'), {
					data: data.data
				}, $('#cont'));
			} else { 

			}
		},
		efun: function() {
		}
	})
	
	
	//自发数据请求
	myajax({
		url:server.crowd,
		data:{
			
		},
		sfun:function(data){
			if(data.status == 200){
				var zhifadata = data.data.raiseData;
//				console.log(zhifadata);
			 var timestamp = Date.parse(new Date());  //当前时间时间撮
			
			for(var i = 0; i<zhifadata.length; i++){
				var star_time = zhifadata[i].add_time * 1000;
				var end_time = zhifadata[i].end_time * 1000;
				//表示还没有开始
				if(zhifadata[i].state == 0){
//					console.log('10');
					zhifadata[i].state = 3;
					continue;
				}else if(timestamp<star_time){
					zhifadata[i].state = 1;  //即将开售
				}else if (timestamp >= star_time && timestamp <=end_time){
					zhifadata[i].state = 2;
					if(zhifadata[i].state == 0){
						zhifadata[i].state = 3;
					}
					
				}else if(timestamp > end_time){
					zhifadata[i].state = 3;
				}else{
					zhifadata[i].state = '-';
				}			
				if(timestamp>=star_time && timestamp <= end_time){
					zhifadata[i].state = 2;  //  表示可以抢筹
				}else{
					zhifadata[i].state = 3;  //  抢筹活动关闭
				}
//				1为即将开售， ， 2立即抢购 3 已结束
			}
//			console.log(zhifadata);
			jo.reTpl($('#temp_timeData'), {
					data: data.data.timeData
				}, $('#cont_timeData'));
				
				jo.reTpl($('#temp_raiseData'), {
					data: zhifadata
				}, $('#cont_raiseData'));							
			}
		},
		efun:function(){			
		}
	})
	
	//点击抢筹处理函数
	$('#cont_raiseData').on('click','li',function(){		
		if($(this).find('.downcolor').html() == '已结束'){
			mylayer('抢筹活动已结束');			
			return false;
		}
	})
	
	
	
	/*$('.market-dates-warp').on('click',function(){
		if(!isLogin()){
			mylayer('请先登录');
			return false;
		}
	})*/

}